home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Context / ContextUser.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  339 b   |  26 lines  |  [TEXT/CWIE]

  1. // ContextUser.h
  2.  
  3. #ifndef ContextUser_h
  4. #define ContextUser_h
  5.  
  6. #ifndef Context_h
  7. #include "Context.h"
  8. #endif
  9.  
  10. class ContextUser
  11.   {
  12.     private:
  13.         Context *const context;
  14.     
  15.     public:
  16.         ContextUser();
  17.         ~ContextUser();
  18.         
  19.         Context *Context() const    { return context; }
  20.         
  21.         void SetContext() const
  22.           { Context::Set( context ); }
  23.   };
  24.  
  25. #endif
  26.